package com.grass.p019lv.databinding;

import android.text.TextUtils;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidsa.bttsddka.R;
import com.androidx.p013lv.base.bean.UserInfo;
import com.androidx.p013lv.base.view.CircleImageView;
import com.google.android.material.appbar.AppBarLayout;
import com.grass.p019lv.fragment.MineFragment;
import com.grass.p019lv.generated.callback.OnClickListener;

/* renamed from: com.grass.lv.databinding.FragmentMineBindingImpl */
public class FragmentMineBindingImpl extends FragmentMineBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback29;
    private final View.OnClickListener mCallback30;
    private final View.OnClickListener mCallback31;
    private final View.OnClickListener mCallback32;
    private final View.OnClickListener mCallback33;
    private final View.OnClickListener mCallback34;
    private final View.OnClickListener mCallback35;
    private final View.OnClickListener mCallback36;
    private final View.OnClickListener mCallback37;
    private final View.OnClickListener mCallback38;
    private final View.OnClickListener mCallback39;
    private final View.OnClickListener mCallback40;
    private final View.OnClickListener mCallback41;
    private final View.OnClickListener mCallback42;
    private final View.OnClickListener mCallback43;
    private final View.OnClickListener mCallback44;
    private final View.OnClickListener mCallback45;
    private long mDirtyFlags;
    private final CoordinatorLayout mboundView0;
    private final LinearLayout mboundView1;
    private final TextView mboundView10;
    private final TextView mboundView11;
    private final TextView mboundView12;
    private final TextView mboundView13;
    private final LinearLayout mboundView14;
    private final LinearLayout mboundView15;
    private final LinearLayout mboundView16;
    private final LinearLayout mboundView17;
    private final LinearLayout mboundView18;
    private final LinearLayout mboundView19;
    private final TextView mboundView2;
    private final LinearLayout mboundView20;
    private final LinearLayout mboundView21;
    private final TextView mboundView22;
    private final ImageView mboundView23;
    private final TextView mboundView3;
    private final CircleImageView mboundView4;
    private final TextView mboundView5;
    private final TextView mboundView6;
    private final TextView mboundView7;
    private final TextView mboundView9;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(R.id.app_bar, 24);
        sViewsWithIds.put(R.id.rl_bg_head, 25);
        sViewsWithIds.put(R.id.tool_bar, 26);
        sViewsWithIds.put(R.id.iv_message, 27);
    }

    public FragmentMineBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 28, sIncludes, sViewsWithIds));
    }

    private FragmentMineBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (AppBarLayout) objArr[24], (ImageView) objArr[27], (RelativeLayout) objArr[25], (Toolbar) objArr[26], (TextView) objArr[8]);
        this.mDirtyFlags = -1;
        CoordinatorLayout coordinatorLayout = (CoordinatorLayout) objArr[0];
        this.mboundView0 = coordinatorLayout;
        coordinatorLayout.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[1];
        this.mboundView1 = linearLayout;
        linearLayout.setTag(null);
        TextView textView = (TextView) objArr[10];
        this.mboundView10 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[11];
        this.mboundView11 = textView2;
        textView2.setTag(null);
        TextView textView3 = (TextView) objArr[12];
        this.mboundView12 = textView3;
        textView3.setTag(null);
        TextView textView4 = (TextView) objArr[13];
        this.mboundView13 = textView4;
        textView4.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[14];
        this.mboundView14 = linearLayout2;
        linearLayout2.setTag(null);
        LinearLayout linearLayout3 = (LinearLayout) objArr[15];
        this.mboundView15 = linearLayout3;
        linearLayout3.setTag(null);
        LinearLayout linearLayout4 = (LinearLayout) objArr[16];
        this.mboundView16 = linearLayout4;
        linearLayout4.setTag(null);
        LinearLayout linearLayout5 = (LinearLayout) objArr[17];
        this.mboundView17 = linearLayout5;
        linearLayout5.setTag(null);
        LinearLayout linearLayout6 = (LinearLayout) objArr[18];
        this.mboundView18 = linearLayout6;
        linearLayout6.setTag(null);
        LinearLayout linearLayout7 = (LinearLayout) objArr[19];
        this.mboundView19 = linearLayout7;
        linearLayout7.setTag(null);
        TextView textView5 = (TextView) objArr[2];
        this.mboundView2 = textView5;
        textView5.setTag(null);
        LinearLayout linearLayout8 = (LinearLayout) objArr[20];
        this.mboundView20 = linearLayout8;
        linearLayout8.setTag(null);
        LinearLayout linearLayout9 = (LinearLayout) objArr[21];
        this.mboundView21 = linearLayout9;
        linearLayout9.setTag(null);
        TextView textView6 = (TextView) objArr[22];
        this.mboundView22 = textView6;
        textView6.setTag(null);
        ImageView imageView = (ImageView) objArr[23];
        this.mboundView23 = imageView;
        imageView.setTag(null);
        TextView textView7 = (TextView) objArr[3];
        this.mboundView3 = textView7;
        textView7.setTag(null);
        CircleImageView circleImageView = (CircleImageView) objArr[4];
        this.mboundView4 = circleImageView;
        circleImageView.setTag(null);
        TextView textView8 = (TextView) objArr[5];
        this.mboundView5 = textView8;
        textView8.setTag(null);
        TextView textView9 = (TextView) objArr[6];
        this.mboundView6 = textView9;
        textView9.setTag(null);
        TextView textView10 = (TextView) objArr[7];
        this.mboundView7 = textView10;
        textView10.setTag(null);
        TextView textView11 = (TextView) objArr[9];
        this.mboundView9 = textView11;
        textView11.setTag(null);
        this.tvTitle.setTag(null);
        setRootTag(view);
        this.mCallback39 = new OnClickListener(this, 11);
        this.mCallback35 = new OnClickListener(this, 7);
        this.mCallback43 = new OnClickListener(this, 15);
        this.mCallback30 = new OnClickListener(this, 2);
        this.mCallback42 = new OnClickListener(this, 14);
        this.mCallback36 = new OnClickListener(this, 8);
        this.mCallback32 = new OnClickListener(this, 4);
        this.mCallback44 = new OnClickListener(this, 16);
        this.mCallback31 = new OnClickListener(this, 3);
        this.mCallback37 = new OnClickListener(this, 9);
        this.mCallback45 = new OnClickListener(this, 17);
        this.mCallback33 = new OnClickListener(this, 5);
        this.mCallback29 = new OnClickListener(this, 1);
        this.mCallback40 = new OnClickListener(this, 12);
        this.mCallback38 = new OnClickListener(this, 10);
        this.mCallback34 = new OnClickListener(this, 6);
        this.mCallback41 = new OnClickListener(this, 13);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 128;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (191 == i) {
            setUserInfo((UserInfo) obj);
        } else if (87 == i) {
            mo25721c((String) obj);
        } else if (34 != i) {
            return false;
        } else {
            setClick((MineFragment.OnClick) obj);
        }
        return true;
    }

    @Override // com.grass.p019lv.databinding.FragmentMineBinding
    public void setUserInfo(UserInfo userInfo) {
        updateRegistration(0, userInfo);
        this.mUserInfo = userInfo;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(191);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.FragmentMineBinding
    /* renamed from: c */
    public void mo25721c(String str) {
        this.f1957a = str;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(87);
        super.requestRebind();
    }

    @Override // com.grass.p019lv.databinding.FragmentMineBinding
    public void setClick(MineFragment.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(34);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeUserInfo((UserInfo) obj, i2);
    }

    private boolean onChangeUserInfo(UserInfo userInfo, int i) {
        if (i == 0) {
            synchronized (this) {
                this.mDirtyFlags |= 1;
            }
            return true;
        } else if (i == 122) {
            synchronized (this) {
                this.mDirtyFlags |= 8;
            }
            return true;
        } else if (i == 136) {
            synchronized (this) {
                this.mDirtyFlags |= 16;
            }
            return true;
        } else if (i == 73) {
            synchronized (this) {
                this.mDirtyFlags |= 32;
            }
            return true;
        } else if (i != 118) {
            return false;
        } else {
            synchronized (this) {
                this.mDirtyFlags |= 64;
            }
            return true;
        }
    }

    /* access modifiers changed from: protected */
    /* JADX WARNING: Removed duplicated region for block: B:74:0x00d5  */
    /* JADX WARNING: Removed duplicated region for block: B:84:0x00f6  */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        String str;
        int i;
        String str2;
        boolean z;
        String str3;
        String str4;
        boolean z2;
        int i2;
        long j2;
        int i3;
        int i4;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        UserInfo userInfo = this.mUserInfo;
        String str5 = this.f1957a;
        MineFragment.OnClick onClick = this.mClick;
        String str6 = null;
        boolean z3 = false;
        if ((249 & j) != 0) {
            long j3 = j & 129;
            if (j3 != 0) {
                if (userInfo != null) {
                    i4 = userInfo.getFreeWatches();
                } else {
                    i4 = 0;
                }
                boolean z4 = i4 == -1;
                if (j3 != 0) {
                    j |= z4 ? 131072 : 65536;
                }
                str4 = z4 ? "去升級" : "成為會員";
            } else {
                str4 = null;
            }
            long j4 = j & 193;
            if (j4 != 0) {
                boolean isEmpty = TextUtils.isEmpty(userInfo != null ? userInfo.getMobile() : null);
                if (j4 != 0) {
                    j |= isEmpty ? 2048 : 1024;
                }
                str3 = isEmpty ? "未綁定" : "已綁定";
            } else {
                str3 = null;
            }
            long j5 = j & 137;
            if (j5 != 0) {
                if (userInfo != null) {
                    str = userInfo.getNickName();
                } else {
                    str = null;
                }
                z2 = str == null;
                if (j5 != 0) {
                    j |= z2 ? 512 : 256;
                }
            } else {
                str = null;
                z2 = false;
            }
            long j6 = j & 161;
            if (j6 != 0) {
                if (userInfo != null) {
                    i3 = userInfo.getFreeWatches();
                } else {
                    i3 = 0;
                }
                boolean z5 = i3 == -1;
                if (j6 != 0) {
                    j |= z5 ? 8192 : 4096;
                }
                if (!z5) {
                    i2 = 8;
                    j2 = j & 145;
                    if (j2 == 0) {
                        str2 = userInfo != null ? userInfo.getPersonSign() : null;
                        boolean isEmpty2 = TextUtils.isEmpty(str2);
                        if (j2 != 0) {
                            j |= isEmpty2 ? 32768 : 16384;
                        }
                        i = i2;
                        z = isEmpty2;
                        z3 = z2;
                    } else {
                        i = i2;
                        str2 = null;
                        z3 = z2;
                        z = false;
                    }
                }
            }
            i2 = 0;
            j2 = j & 145;
            if (j2 == 0) {
            }
        } else {
            str4 = null;
            str3 = null;
            str2 = null;
            str = null;
            z = false;
            i = 0;
        }
        long j7 = j & 130;
        long j8 = 137 & j;
        if (j8 == 0) {
            str = null;
        } else if (z3) {
            str = "游客0000";
        }
        long j9 = j & 145;
        if (j9 != 0) {
            str6 = z ? this.mboundView3.getResources().getString(R.string.self_no_introduce) : str2;
        }
        if ((j & 128) != 0) {
            this.mboundView1.setOnClickListener(this.mCallback29);
            this.mboundView10.setOnClickListener(this.mCallback33);
            this.mboundView11.setOnClickListener(this.mCallback34);
            this.mboundView12.setOnClickListener(this.mCallback35);
            this.mboundView13.setOnClickListener(this.mCallback36);
            this.mboundView14.setOnClickListener(this.mCallback37);
            this.mboundView15.setOnClickListener(this.mCallback38);
            this.mboundView16.setOnClickListener(this.mCallback39);
            this.mboundView17.setOnClickListener(this.mCallback40);
            this.mboundView18.setOnClickListener(this.mCallback41);
            this.mboundView19.setOnClickListener(this.mCallback42);
            this.mboundView20.setOnClickListener(this.mCallback43);
            this.mboundView21.setOnClickListener(this.mCallback44);
            this.mboundView23.setOnClickListener(this.mCallback45);
            this.mboundView3.setOnClickListener(this.mCallback30);
            this.mboundView7.setOnClickListener(this.mCallback31);
            this.mboundView9.setOnClickListener(this.mCallback32);
        }
        if (j8 != 0) {
            TextViewBindingAdapter.setText(this.mboundView2, str);
            TextViewBindingAdapter.setText(this.tvTitle, str);
        }
        if ((193 & j) != 0) {
            TextViewBindingAdapter.setText(this.mboundView22, str3);
        }
        if (j9 != 0) {
            TextViewBindingAdapter.setText(this.mboundView3, str6);
        }
        if (j7 != 0) {
            MineFragment.loadUserLogo(this.mboundView4, str5);
        }
        if ((161 & j) != 0) {
            this.mboundView5.setVisibility(i);
        }
        if ((j & 129) != 0) {
            MineFragment.setUserVipData(this.mboundView6, userInfo);
            TextViewBindingAdapter.setText(this.mboundView7, str4);
        }
    }

    @Override // com.grass.p019lv.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = true;
        switch (i) {
            case 1:
                MineFragment.OnClick onClick = this.mClick;
                if (onClick == null) {
                    z = false;
                }
                if (z) {
                    onClick.personalInformation();
                    return;
                }
                return;
            case 2:
                MineFragment.OnClick onClick2 = this.mClick;
                if (onClick2 == null) {
                    z = false;
                }
                if (z) {
                    onClick2.userIntroduce();
                    return;
                }
                return;
            case 3:
                MineFragment.OnClick onClick3 = this.mClick;
                if (onClick3 == null) {
                    z = false;
                }
                if (z) {
                    onClick3.vipCenter();
                    return;
                }
                return;
            case 4:
                MineFragment.OnClick onClick4 = this.mClick;
                if (onClick4 == null) {
                    z = false;
                }
                if (z) {
                    onClick4.vipCenter();
                    return;
                }
                return;
            case 5:
                MineFragment.OnClick onClick5 = this.mClick;
                if (onClick5 == null) {
                    z = false;
                }
                if (z) {
                    onClick5.mineWallet();
                    return;
                }
                return;
            case 6:
                MineFragment.OnClick onClick6 = this.mClick;
                if (onClick6 == null) {
                    z = false;
                }
                if (z) {
                    onClick6.shareInvitation();
                    return;
                }
                return;
            case 7:
                MineFragment.OnClick onClick7 = this.mClick;
                if (onClick7 == null) {
                    z = false;
                }
                if (z) {
                    onClick7.addGroup();
                    return;
                }
                return;
            case 8:
                MineFragment.OnClick onClick8 = this.mClick;
                if (onClick8 == null) {
                    z = false;
                }
                if (z) {
                    onClick8.btnApplicationCenter();
                    return;
                }
                return;
            case 9:
                MineFragment.OnClick onClick9 = this.mClick;
                if (onClick9 == null) {
                    z = false;
                }
                if (z) {
                    onClick9.watchHistory();
                    return;
                }
                return;
            case 10:
                MineFragment.OnClick onClick10 = this.mClick;
                if (onClick10 == null) {
                    z = false;
                }
                if (z) {
                    onClick10.mineBuy();
                    return;
                }
                return;
            case 11:
                MineFragment.OnClick onClick11 = this.mClick;
                if (onClick11 == null) {
                    z = false;
                }
                if (z) {
                    onClick11.mineCollect();
                    return;
                }
                return;
            case 12:
                MineFragment.OnClick onClick12 = this.mClick;
                if (onClick12 == null) {
                    z = false;
                }
                if (z) {
                    onClick12.mineDownLoad();
                    return;
                }
                return;
            case 13:
                MineFragment.OnClick onClick13 = this.mClick;
                if (onClick13 == null) {
                    z = false;
                }
                if (z) {
                    onClick13.mineAttention();
                    return;
                }
                return;
            case 14:
                MineFragment.OnClick onClick14 = this.mClick;
                if (onClick14 == null) {
                    z = false;
                }
                if (z) {
                    onClick14.exchangeVip();
                    return;
                }
                return;
            case 15:
                MineFragment.OnClick onClick15 = this.mClick;
                if (onClick15 == null) {
                    z = false;
                }
                if (z) {
                    onClick15.goSetting();
                    return;
                }
                return;
            case 16:
                MineFragment.OnClick onClick16 = this.mClick;
                if (onClick16 == null) {
                    z = false;
                }
                if (z) {
                    onClick16.bindingPhone();
                    return;
                }
                return;
            case 17:
                MineFragment.OnClick onClick17 = this.mClick;
                if (onClick17 == null) {
                    z = false;
                }
                if (z) {
                    onClick17.customerService();
                    return;
                }
                return;
            default:
                return;
        }
    }
}
